<?php
namespace app\weixin\model;
use think\Config;
use think\Model;
use think\Db;

/**
 * 抽奖模型
 * @package app\weixin\model
 */
class Choujiang extends Model
{

    //获取是否有未付款成功的提现记录
    public function ispay($uid){
        $row = Db::name('extract')->where(['uid'=>$uid,'ispay'=>0])->select();
        return $row;
    }
    
    //获取用户是否有逆思维公众号的OPENID
    public function nswopenid($uid){
       $row = Db::name('nisiwei_openid')->where('uid',$uid)->value('openid');
       return $row;
    }
       
}
